import sys
import os
from werkzeug.security import generate_password_hash


if __name__ == '__main__':
    basedir = os.path.abspath(os.path.dirname(__file__))
    sys.path.append(basedir)
    from kindle_app.database import init_db, db_session, User
    init_db()
    u = User(userName='destiny', password=generate_password_hash('much970110'))
    db_session.add(u)
    db_session.commit()

    init_db()
